// Copyright (c) 2010 god6or@gmail.com under MIT license.

package ul.ownet

import java.io.{File}
import ul.iobj.{IAttr, IObj}
import ul.gettext.{GetText}

// create configuration
object Config extends IObj {
    
    val projectName = "OWNet"
    val confFile = "." + File.separator + projectName + ".conf"
    val dbFile = "." + File.separator + projectName + ".csv"
    var tran: GetText = null
    
    val dbAutoSavePeriod = 5 * 60 * 1000L // DB save period, millis

    attrsAdd( List(
        new IAttr( "winX", "window X", "", 0 )
        ,new IAttr( "winY", "window Y", "", 0 )
        ,new IAttr( "winW", "window W", "", 600 )
        ,new IAttr( "winH", "window H", "", 500 )

        ,new IAttr( "lang", "language", "", "en" )

        ,new IAttr( "tabIndex", "tab index", "selected tab index", 0 )
        ,new IAttr( "ports", "ports", "selected ports", "" )
        ,new IAttr( "sensors", "sensors", "found sensors", "" )
        ,new IAttr( "pollPeriod", "poll period", "sensors poll period, sec", 10 )
        ,new IAttr( "pollLastLocation", "poll file location", "", "." )
        ,new IAttr( "openedFiles", "", "", "" )
    ))
    
}

